Skip to content

Conversation

@kevinzakka
Copy link
Collaborator

Summary

  • Replace 5 fixed spotlights with a single directional light that scales height based on terrain size
  • Reduces shadow rendering cost (lights are expensive due to extra rendering passes)
  • Provides uniform lighting across the entire terrain
  • Re-enable heightfield terrains in config and improve device selection

Test plan

  • Visualize large terrain (10x20) with add_lights=True in config.py
  • Verify uniform lighting across terrain edges

🤖 Generated with Claude Code

Replace 5 fixed spotlights with a single directional light that scales
height based on terrain size. This reduces shadow rendering cost and
provides uniform lighting across the terrain.

Also re-enable heightfield terrains in config and improve device selection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@kevinzakka kevinzakka merged commit 46f17fb into main Jan 5, 2026
9 checks passed
@kevinzakka kevinzakka deleted the fix/terrain-lighting branch January 5, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants